<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>ClubApp - DATACACH</title>
	<h:outputStylesheet name="psc.css" library="css"></h:outputStylesheet>
</h:head>
<h:body>
	<div id="mainlogin">
		<div id="content">
			<div class="boxlogin">
				<f:view>
					<h:form>
						<h:messages errorClass="mensagemErro" infoClass="mensagemInfo"
							warnClass="mensagemErro" globalOnly="true"></h:messages>
						<fieldset class="formulario">
							<legend class="titulo">Efetue o login para acessar o
								sistema</legend>
							<h:panelGrid>
            	Login:
				<h:inputText id="login" value="#{usuarioSistemaBean.usuarioSistema.login}"
									required="true" requiredMessage="Preencha o login"></h:inputText>
				Senha:
				<h:inputSecret id="senha" value="#{usuarioSistemaBean.usuarioSistema.senha}"
									required="true" requiredMessage="Preencha a senha"></h:inputSecret>
								<f:facet name="footer">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<h:commandButton
										value="Entrar" action="#{usuarioSistemaBean.efetuarLogin}"
										class="botaoSalvar"></h:commandButton>
									<br></br>
									<font color="red"> <b><i>#{usuarioSistemaBean.mensagem}</i> </b></font>
								</f:facet>
							</h:panelGrid>
						</fieldset>
					</h:form>
				</f:view>
			</div>
		</div>
		<div id="footerlogin">
			<p>Copyright © 2012 - ClubApp</p>
		</div>

	</div>

</h:body>
</html>